package com.bang.springcloud.report.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单
 * </p>
 *
 * @author bang
 * @since 2019-12-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("`order`")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 自动编号
     */
    @TableId(value = "order_id", type = IdType.AUTO)
    private Long orderId;

    /**
     * 订单编号
     */
    private String orderNo;

    /**
     * 消费者
     */
    private Long userId;

    /**
     * 消费金额
     */
    private BigDecimal money;

    /**
     * 订单类型 0:购买机器人线路,1:号码清洗,2:话术模板,3:机器人续费
     */
    private Integer orderType;

    /**
     * 订单来源
     */
    private String orderSource;

    /**
     * 订单时间
     */
    private LocalDateTime addtime;

    /**
     * 订单备注
     */
    private String orderRemark;

    /**
     * 状态
     */
    private Integer flag;


}
